package com.youth.youthservice.client.Impl;

import com.youth.ClientEntity.UserEntity;
import com.youth.commonutils.R;
import com.youth.commonutils.UserDto;
import com.youth.youthservice.client.MemberClient;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;


//降级策略：如果上有服务调用失败则会被触发
@Component
public class MemberDegradeFeignClient implements MemberClient {
    @Override
    public String ByIdGetName(String memberId) {
        System.out.println("根据用户id获取用户名字失败~");
        return null;
    }

    @Override
    public UserEntity ByIdGetUser(HashMap<String,String> map) {
        System.out.println("远程调用失败,根据用户id获取用户信息失败");
        return null;
    }

    @Override
    public UserDto getLoginInfo(String userId) {
        System.out.println("远程调用失败，获取用户信息失败");
        return null;
    }
}
